export default {

  updateInfo(state, par) {
    state[par[0]] = par[1];
  },
  addMapInfo(state, par) {
    if (par[1] instanceof Array) {
      state[par[0]][par[1]] = par[2];
    } else {
      state[par[0]][par[1]] = Object.assign({}, state[par[0]][par[1]], par[2]);
    }
  }

}
